<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'language' => 'zh-CN',
    'timeZone' => 'Asia/Shanghai',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'formatter' => [
	        'dateFormat' => 'yyyy-MM-dd',
	        'datetimeFormat' => 'yyyy-MM-dd H:i:s',
	        'decimalSeparator' => ',',
	        'thousandSeparator' => ' ',
	        'currencyCode' => 'RMB',
	   ],
        'i18n' => [
	        'translations' => [
	            'app*' => [
	                'class' => 'yii\i18n\PhpMessageSource',
	                'basePath' => '@app/messages',
	                'sourceLanguage' => 'en',
	                'fileMap' => [
	                    'app' => 'app.php',
	                    'app_table' => 'table.php',
	                    'app/error' => 'error.php',
	                ],
	            ],
	            'user' => [
	                'class' => 'yii\i18n\PhpMessageSource',
	                'basePath' => '@app/messages',
	                'sourceLanguage' => 'en',
	                'fileMap' => [
	                    'user' => 'user.php',
	                    'app/error' => 'error.php',
	                ],
	            ],
	        ],
	    ],
    ],
];
